	public var health = 100;
	var maxArmor = 100;
	
	var inventory = new Array();


	public function healthUpdate(num: int){
		health += num;
		if(health >= 100){
			health = 100;
		}
		else if(health <=0){
			print("you died");
			death();
		}
		
	
	}
	function death(){
		this.gameObject.SetActive(false);
		
	}
	
	function armorUpdate(num: int){
		if(maxArmor >= 100){
			maxArmor = 100;
		}
		else if(maxArmor <=0){
			maxArmor = 0;
		}
	} 
